<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <meta name="apple-mobile-web-app-title" content="Amaze UI" />
  <title>新学期！和4G+ 闪耀青春地盘</title>
  <link rel="stylesheet" href="../../template/assets/css/amazeui.min.css"/>
  <link rel="stylesheet" href="../../template/website/css/app.css"/>
</head>
<body>
  <div class="am-u-sm-12">
    <div class="am-u-sm-12 am-text-center am-padding-top-xs">
      <img src="/upload/image/campus/electr_flyer_index.jpg"/>
    </div>
    <div class="am-u-sm-12 am-g-collapse">
      <div class="am-u-sm-6" style="padding:4px 2px 0px 0px;">
        <button type="button" class="am-btn am-btn-primary am-btn-block" id='zf_btn'>办资费</button>
      </div>
      <div class="am-u-sm-6" style="padding:4px 0px 0px 2px;">
        <button type="button" class="am-btn am-btn-primary am-btn-block" id='kd_btn'>开宽带</button>
      </div>
    </div>
    <div class="am-u-sm-12 am-g-collapse">
      <div class="am-u-sm-6" style="padding:2px 2px 2px 0px;">
        <button type="button" class="am-btn am-btn-primary am-btn-block" id='ll_btn'>充流量</button>
      </div>
      <!--  <div class="am-u-sm-6  am-padding-top-xs">
      <button type="button" class="am-btn am-btn-primary am-btn-block" id='zd_btn'>购终端</button>
    </div>
    -->
  </div>
</div>

<script type="text/javascript" src="../../template/assets/js/jquery.min.js"></script>
<script type="text/javascript" src="../../template/assets/js/amazeui.min.js"></script>
<script type="text/javascript" src="../../template/assets/js/handlebars.min.js"></script>
<script type="text/javascript" src="../../template/assets/js/amazeui.widgets.helper.min.js"></script>
<script type="text/javascript" src="../../template/website/js/app.js"></script>
<script type="text/javascript">    
    $(function(){
      $("#zf_btn").on('click', function() {
        window.location.href = getUrl("zf");
      });
      $("#kd_btn").on('click', function() {
        window.location.href = getUrl("kd");
      });
      $("#ll_btn").on('click', function() {
        window.location.href = getUrl("ll");
      });
      $("#zd_btn").on('click', function() {
        window.location.href = getUrl("zd");
      });
    });  

    function getUrl(type){
      console.log("type="+type);
      return "electr_flyer_sub_index.html?"+getParams()+"&efType="+type;
    }

    //返回页面分享的参数,当当前页面有canAppShare=1参数时需要添加此函数resShareParm(函数名不能改，客户端已经只调用这个函数)
    function resShareParm() {
        var regText1 = "saleType=1";
        var regText2 = "saleType=3";
        var regS1 = new RegExp(regText1, "gi");
        var regS2 = new RegExp(regText2, "gi");
        var urlpath = window.location.href.replace(regS1, "saleType=2").replace(regS2, "saleType=4");//修改平台类型(原生分享出去统一改为分享平台)：1（直销通代客下单）改为 2（直销通分享页面购买） 3（微店原生购买）改为 4（微店分享购买）
        var imgpath = 'http://'+window.location.host+'/upload/file/default_head_img.png';
        var title = "新学期！和4G+ 闪耀青春地盘";
        var description = "萌新享福利，0元畅玩70G，20M校园宽带免费用，4G潮机6折购";
        var data = "url=" + urlpath + "&&img=" + imgpath + "&&title=" + title + "&&description=" + description + "";
        return data;
    }   
  </script>
</body>
</html>